package com.ssm.server.sendgoods.dao;

import com.ssm.server.sendgoods.model.Address;
import com.ssm.server.user.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangyibo
 */
@Repository
public interface AddressDao {
    public List<Address> getAddressByUser(int userId);
    public void saveAddress(Address address);
    public Address getAddressById(int addressId);
    public void updateAddress(Address address);  
    public void deleteAddress(int addressId);  
    public void updateAddressStateAll(int userId);
    public void updateAddressState(int addressId); 

}
